Skip to content

feat: update to PyO3 0.30 - #121

Open
sd2k wants to merge 2 commits into
davidhewitt:mainfrom
sd2k:pyo3-0.30
Open

sd2k wants to merge 2 commits into
davidhewitt:mainfrom
sd2k:pyo3-0.30

Conversation

@sd2k

@sd2k sd2k commented Oct 18, 2026

Copy link
Copy Markdown

Bumps pyo3 to 0.30.

PyO3 0.30 drops Python 3.8 support and raises its MSRV to 1.85, so this also:

  • bumps rust-version to 1.85
  • switches the abi3 CI test from abi3-py38 (no longer exists) to abi3-py39
  • removes 3.8 from the CI Python matrix
  • adds an Unreleased CHANGELOG entry

Tested locally: cargo test, cargo test --features pyo3/abi3-py39, and cargo test --features arbitrary_precision all pass. (cargo clippy --all-targets reports 3 approx_constant errors in tests, but those are already present on main.)

🤖 Generated with Claude Code

PyO3 0.30 drops Python 3.8 and raises its MSRV to 1.85, so follow suit:
bump rust-version, test abi3 against py39, and remove 3.8 from the CI
matrix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sd2k sd2k changed the title Update to PyO3 0.30 feat: update to PyO3 0.30 Oct 18, 2026

@jpmckinney jpmckinney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Though, I figure matrix should use non-dev 3.15 (as it's been released), and add the dev for 3.16 (to match current practice).

Comment thread .github/workflows/ci.yml Outdated
fail-fast: false # If one platform fails, allow the rest to keep testing.
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "3.15-dev", "3.15t-dev"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "3.15-dev", "3.15t-dev"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "3.15-dev", "3.15t-dev"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "3.15", "3.15t", "3.16-dev", "3.16t-dev"]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Switched to the released 3.15/3.15t in e898a9e, which matches PyO3's own CI. I've held off on 3.16-dev since PyO3 doesn't test against it yet and setup-python doesn't have a 3.16 build. Happy to add it once either changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants